﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Fjaspx.UI.Web.Admin.FriendLink
{
    public partial class LinkManager : System.Web.UI.Page
    {

        public List<Fjaspx.Sys.Model.Fjaspx_FriendLink> LinkList;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                Bind();
        }
        void Bind()
        {
            int page = 0;
            int pages = 0;
            int len = 12;
            LinkList = new Fjaspx.Sys.Bll.Fjaspx_FriendLink().GetList(page, len, ref pages);
        }
        /// <summary>
        /// 状态
        /// </summary>
        /// <param name="passed"></param>
        /// <returns></returns>
        public string State(int passed)
        {
            switch (passed)
            {
                case 0:
                    return "通过";
                default:
                    return "未通过";
            }
        }

        /// <summary>
        /// 类别
        /// </summary>
        /// <param name="passed"></param>
        /// <returns></returns>
        public string GType(int cat_id)
        {
            switch (cat_id)
            {
                case 1:
                    return "图片链接";
                default:
                    return "文字链接";
            }
        }
    }
}